<?php
/**
 * Created by PhpStorm.
 * User: Inhere
 * Date: 2015/2/9
 * Use : ...
 * File: Configuration.php
 */

namespace ulue\core\utils;


use ulue\libs\datastorage\AbstractDatastorage;

class Configuration extends AbstractDatastorage
{
    protected function storeMode()
    {
        return 'full';
    }

    /**
     * 设置配置值
     * @see TraitUseDatastorage::set()
     * @param array|string $path
     * @param $value
     * @param bool $createNode
     * @return $this|mixed
     */
    public function set($path, $value, $createNode=false)
    {
        // 此时载入数据到 $this->box
        if (is_array($path)) {
            return $this->bindData($path);
        }

        return parent::set($path, $value, $createNode);
    }

}// end class Configuration